/*项目信息管理-项目状态：在建、竣工、新批、停工*/
import 'package:flutter/cupertino.dart';

class ProjectMessMarkView extends StatelessWidget {
  late Color borderColor;
  late Color fullrColor;
  late String content;
  late double mHorizontalPadding;
  late double mVerticalPadding;

  ProjectMessMarkView(
      {Key? key,
      required this.borderColor,
      required this.fullrColor,
      this.mHorizontalPadding = 3,
      this.mVerticalPadding = 2,
      required this.content});

  @override
  Widget build(BuildContext context) {
    return Container(
      //设置这个属性会是的Container宽度充满父控件
      // alignment: Alignment.center,
      padding: EdgeInsets.symmetric(horizontal: mHorizontalPadding, vertical:mVerticalPadding),
      decoration: BoxDecoration(
          color: fullrColor,
          border: Border.all(color: borderColor, width: 1),
          borderRadius: BorderRadius.all(Radius.circular(2))),
      child: Text(content, style: TextStyle(fontSize: 14, color: borderColor)),
    );
  }
}
